def track(func):
    def wrap(*args, **kwargs):
        print "Before call " + func.__name__
        result = func(*args, **kwargs)
        print "After call " + func.__name__
        return result

    return wrap

@track
def hi():
    print "hi"

def hello():
    print "hello"

hi()
hello()
